// 创建 注入页面的plugin 容器
const dom = document.createElement('div')
dom.id = 'zphz-ai-plugin'

chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
    console.log('消息来啦', request)
    if (request.command === 'createSquare' && !document.body.contains(dom)) {
        document.body.appendChild(dom)
    }
});